 <?php
$slider = $tc->slider_baner(1,1);
	if(mysql_num_rows($slider)>0){
	$view_slider = '<script type="text/javascript" src="assets/jquery.wt-rotator.min.js"></script>
	<script type="text/javascript" src="assets/preview.js"></script>
	<div class="container"><div class="wt-rotator"><a href="#"></a><div class="desc"></div><div class="preloader"></div>
	<div class="c-panel"><div class="buttons"><div class="prev-btn"></div><div class="play-btn"></div><div class="next-btn"></div></div><div class="thumbnails"><ul>';
	while($row_slider = mysql_fetch_array($slider)){
		$view_slider .= '<li><a href="'.url_slider_image.$row_slider['url_hinh'].'" title="'.$row_slider['name'].'"></a><a href="'.$row_slider['link'].'" target="_blank">'.$row_slider['name'].'</a></li>';
	}
	$view_slider .= '</ul></div></div></div></div>';
}